package com.bw.task.fragment;

import com.baidu.mapapi.map.MapView;
import com.bw.library.mvp.view.BaseFragment;
import com.bw.task.R;

public class ForeFragment extends BaseFragment {


    private MapView mMapView;

    @Override
    public int bandLayout() {
        return R.layout.fragment_fore;
    }

    @Override
    public void initData() {

    }

    @Override
    public void initView() {

        mMapView = (MapView) findViewById(R.id.bmapView);
    }
    @Override
    public void onResume() {
        super.onResume();
        //在activity执行onResume时执行mMapView. onResume ()，实现地图生命周期管理
        mMapView.onResume();
    }
    @Override
    public void onPause() {
        super.onPause();
        //在activity执行onPause时执行mMapView. onPause ()，实现地图生命周期管理
        mMapView.onPause();
    }
    @Override
    public void onDestroy() {
        super.onDestroy();
        //在activity执行onDestroy时执行mMapView.onDestroy()，实现地图生命周期管理
        mMapView.onDestroy();
    }
}